From: LLVM Packaging Team Date: Thu, 7 Sep 2023 22:43:45 +0000 (+0200) Subject: nonlinux X-Git-Tag: archive/raspbian/1%15.0.7-10+rpi1~1^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d3338c39188a1d387cb1d48033f6a31bb6e90d75;p=llvm-toolchain-15.git nonlinux https://reviews.llvm.org/D143017 [Libomptarget] Fix disabling amdgpu on non-Linux. Previously, on non-Linux, amdgpu would get enabled whatever the CPU architecture. Gbp-Pq: Topic amdgpu Gbp-Pq: Name nonlinux.patch --- diff --git a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt index 66bf680d15..1315939ffe 100644 --- a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt +++ b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt @@ -27,7 +27,7 @@ if(NOT LIBOMPTARGET_DEP_LIBELF_FOUND) return() endif() -if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux") +if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux")) libomptarget_say("Not building AMDGPU plugin: only support AMDGPU in Linux x86_64, ppc64le, or aarch64 hosts") return() endif()